#!/usr/bin/env php
<?php
namespace iflow;

use iflow\Container\implement\annotation\Annotation;

require __DIR__ . '/vendor/autoload.php';

// 应用初始化
#[Annotation([
    'namespaces' => [ __DIR__ . '/app' ],
    'cache' => false,
    // 缓存地址
    'cache_path' => __DIR__ . '/runtime/annotation/iflow_annotation'
])] // 定义路由注解
class MyApplication extends App {
    public function runApp() {
        $this->run();
    }
}

(new MyApplication()) -> runApp();
